<?php if (isset($upFromTopicList) && isset($myWork)) { ?>
    <div style="width: 100%; margin-top: 15px">
        <?php foreach ($upFromTopicList as $fromTopicMsg) {
            if ($fromTopicMsg->UpCount > 0) { ?>
                <a data-forward="controller=topic_show&topic_id=<?= $fromTopicMsg->TopicId ?>"
                   onclick="act_content(this)"
                   class="app-gray2-color"
                   style="border: 1px solid #03A9F4; padding: 3px; border-radius: 3px">
                    <sapn><?= $fromTopicMsg->Name ?></sapn>
                    <span><?= $fromTopicMsg->UpCount; ?></span>
                    <i class="am-icon-heart-o"></i>
                </a>
            <?php }
        } ?>
    </div>
<?php } ?>